<?php
/**
 * Created by PhpStorm.
 * User: DELL
 * Date: 2017/10/10
 * Time: 10:21
 */
/*in_array()的升级，可以检测深层*/
function deep_in_array($value, $array)
{
    foreach ($array as $k => $item) {
        if (!is_array($item)) {
            if ($item == $value) {
                return true;
            } else {
                continue;
            }
        }
        if (in_array($value, $item)) {
            return true;
        } elseif (deep_in_array($value, $item)) {
            return true;
        }
    }
    return false;
}
/*原样样输出*/
function sb($data){
    echo '<pre>';
    var_dump($data);
    echo'<pre>';
}